﻿// Type: GandA.Component.DataAccess.MySQL.MySQLParameter
// Assembly: GandA.Component.DataAccess, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// Assembly location: C:\CodePlex\CLab\CLab\DLLs\GandA.Component.DataAccess.dll

namespace GandA.Component.DataAccess.MySQL
{
    public class MySQLParameter
    {
        private string _vStrParamName;
        private object _vObjParamValue;
        private MySQLParameter.vEnumMySqlDbType _vEnumMySqlDbType;
        private MySQLParameter.vEnumParameterDirection _vEnumParameterDirection;

        public string ParamName
        {
            get
            {
                return this._vStrParamName;
            }
            set
            {
                this._vStrParamName = value;
            }
        }

        public object ParamValue
        {
            get
            {
                return this._vObjParamValue;
            }
            set
            {
                this._vObjParamValue = value;
            }
        }

        public MySQLParameter.vEnumMySqlDbType EnumMySqlDbType
        {
            get
            {
                return this._vEnumMySqlDbType;
            }
            set
            {
                this._vEnumMySqlDbType = value;
            }
        }

        public MySQLParameter.vEnumParameterDirection EnumParameterDirection
        {
            get
            {
                return this._vEnumParameterDirection;
            }
            set
            {
                this._vEnumParameterDirection = value;
            }
        }

        public MySQLParameter(string pParamName, object pParamValue, MySQLParameter.vEnumMySqlDbType pEnumMySqlDbType, MySQLParameter.vEnumParameterDirection pEnumMySqlParameterDirection)
        {
            this._vObjParamValue = pParamValue;
            this._vStrParamName = pParamName;
            this._vEnumMySqlDbType = pEnumMySqlDbType;
            this._vEnumParameterDirection = pEnumMySqlParameterDirection;
        }

        public MySQLParameter()
        {
        }

        public enum vEnumMySqlDbType
        {
            vDecimal = 0,
            vByte = 1,
            vInt16 = 2,
            vInt32 = 3,
            vFloat = 4,
            vDouble = 5,
            vTimestamp = 7,
            vInt64 = 8,
            vInt24 = 9,
            vDate = 10,
            vTime = 11,
            vDateTime = 12,
            vYear = 13,
            vNewdate = 14,
            vVarString = 15,
            vBit = 16,
            vNewDecimal = 246,
            vEnum = 247,
            vSet = 248,
            vTinyBlob = 249,
            vMediumBlob = 250,
            vLongBlob = 251,
            vBlob = 252,
            vVarChar = 253,
            vString = 254,
            vGeometry = 255,
            vUByte = 501,
            vUInt16 = 502,
            vUInt32 = 503,
            vUInt64 = 508,
            vUInt24 = 509,
            vBinary = 600,
            vVarBinary = 601,
            vTinyText = 749,
            vMediumText = 750,
            vLongtext = 751,
            vText = 752,
            vGuid = 800,
        }

        public enum vEnumParameterDirection
        {
            vInput = 1,
            vOutput = 2,
            vInputOutput = 3,
            vReturnValue = 6,
        }
    }
}
